import index from "@/views/order/index.vue"
import info from "@/views/order/info.vue"
import express from "@/views/order/express.vue"
import refund from "@/views/order/refund.vue"
import refundInfo from "@/views/order/refundInfo.vue"
import goRefund from "@/views/order/goRefund.vue"
import comment from "@/views/order/comment.vue"
import commentDetail from "@/views/order/commentDetail.vue"



// 子路由列表
const routes = [
    {
        'name':"index",
        'path':"index",
        component:index,
        meta:{login:true}
    },
    {
        'name':"info",
        'path':"info",
        component:info,
        meta:{login:true}
    },
    {
        'name':"express",
        'path':"express",
        component:express,
        meta:{login:true}
    },
    {
        'name':"refund",
        'path':"refund",
        component:refund,
        meta:{login:true}
    },
    {
        'name':"refundInfo",
        'path':"refundInfo",
        component:refundInfo,
        meta:{login:true}
    },
    {
        'name':"goRefund",
        'path':"goRefund",
        component:goRefund,
        meta:{login:true}
    },
    {
        'name':"comment",
        'path':"comment",
        component:comment,
        meta:{login:true}
    },
    {
        'name':"commentDetail",
        'path':"commentDetail",
        component:commentDetail,
        meta:{login:true}
    },
]

// 创建父路由
const parentRouter = {
    template:"<router-view></router-view>"
}

export default [{
    name:"order",
    component:parentRouter,
    path:"/order",
    children:routes
}]

